﻿

namespace TrackSystem.IO.Formula
{
    /// <summary>
    /// 表达式项目的类型 
    /// </summary>
    public class ExprItem
    {
        /// <summary>
        /// 操作符类型
        /// </summary>
        public SynType synType { get; set; }

        /// <summary>
        /// 运算符类型
        /// </summary>
        public OperatorType operatorType { get; set; }

        /// <summary>
        /// 运算符
        /// </summary>
        public string OpName { get; set; }

        /// <summary>
        /// 运算符对应的Id代号
        /// </summary>
        public Guid OpId { get; set; }

        /// <summary>
        /// 操作数的数量
        /// </summary>
        public int OpNum { get; set; }

        /// <summary>
        /// 常量值
        /// </summary>
        public double normalVal { get; set; }

        /// <summary>
        /// 常量值
        /// </summary>
        public OperandDef? Operand { get; set; }

        /// <summary>
        /// 变量名称
        /// </summary>
        public string? varName { get; set; }
    }
}
